home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ ScanDisk Logging 1.xpl < prev    next >
Text File  |  2001-04-16  |  2KB  |  55 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="3"
  4. "UIPATH"="Startup/Shutdown\Startup\Windows 9x/Me\30) Scandisk"
  5. "NAME"="ScanDisk Logging"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Append to existing log"
  8. "TEXT 2"="Overwrite existing log"
  9. "TEXT 3"="No logging"
  10. "DESCRIPTION 1"="If Windows detects that your PC has crashed, it starts ScanDisk while booting to correct any HD failures."
  11. "DESCRIPTION 2"="When it does this, it creates a log of all of the actions it carries out in a file called scandisk.log in the your HD's root folder. This can get quite lengthy, since it normally appends to the exiting log."
  12. "DESCRIPTION 3"="Setting the second option will make ScanDisk get rid of the existing log (if there is one) and replace it with a new one. This will make the log file smaller."
  13. "DESCRIPTION 4"="The third option disables all logging. This means you can delete the scandisk.log file, but it may prove potentially hazardous if Scandisk accidently changes something and you have no way of finding out how to repair it."
  14. "COMMENT 1"="Thanks to Chris [cgthompson@mailandnews.com] and Axcel216 [axcel216@aol.com] for the idea!"
  15. "VERSION"="1.05"
  16. "AUTHOR"="Neil R. Turner (totalxs@hotmail.com) for Xteq Systems"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems for Xteq Systems"
  18. "CONTACTURL"="http://www.neilrt.cwc.net/"
  19. "OSVERSION"="101010"
  20.  
  21. w=GetWinDir
  22.  
  23. SUB Plugin_Initialize
  24.  s=IniReadValue(w & "Command\scandisk.ini","Custom","SaveLog")
  25.  if s="Append       ; Off, Append, Overwrite" then
  26.   Call SetUIElement(1, true)
  27.  end if
  28.  if s="Overwrite       ; Off, Append, Overwrite" then
  29.   Call SetUIElement(2, true)
  30.  end if
  31.  if s="Off       ; Off, Append, Overwrite" then
  32.   Call SetUIElement(3, true)
  33.  end if
  34. END SUB
  35.  
  36. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  37.  s=GetUIElement(1)
  38.  if s=true then
  39.   Call IniWriteValue(w & "Command\scandisk.ini","Custom","SaveLog","Append       ; Off, Append, Overwrite")
  40.  end if
  41.  
  42.  s=GetUIElement(2)
  43.  if s=true then
  44.   Call IniWriteValue(w & "Command\scandisk.ini","Custom","SaveLog","Overwrite       ; Off, Append, Overwrite")
  45.  end if
  46.  
  47.  s=GetUIElement(3)
  48.  if s=true then
  49.   Call IniWriteValue(w & "Command\scandisk.ini","Custom","SaveLog","Off       ; Off, Append, Overwrite")
  50.  end if
  51. END SUB
  52.  
  53. SUB Plugin_Terminate
  54. END SUB
  55.